package com.cndw.kungfu.model.disciple.domain;

import com.cndw.kungfu.ext.StringProcesser;

/**
 * 系统徒弟模型实体类
 * @author fantadust [9677889@qq.com]
 * @date 2011-6-23 下午05:16:47
 */
public class DiscipleMode {
	/**
	 * 唯一编号
	 */
	private int id;
	/**
	 * 徒弟名字
	 */
	private String name;
	/**
	 * 徒弟品质
	 */
	private int quality;

	/**
	 * 成长值
	 */
	private int growthMin;
	private int growthMax;
	private int reinGrowthMax;
	/**
	 * 资质类型
	 */
	private int qualifiedType;
	/**
	 * 资质分配系数
	 */
	private String qualifiedFloating;

	private int[] qualifiedFloatArr;

	
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public int getQuality() {
		return quality;
	}
	public void setQuality(int quality) {
		this.quality = quality;
	}
	
	public int getQualifiedType() {
		return qualifiedType;
	}
	public void setQualifiedType(int qualifiedType) {
		this.qualifiedType = qualifiedType;
	}
	public String getQualifiedFloating() {
		return qualifiedFloating;
	}
	public void setQualifiedFloating(String qualifiedFloating) {
		this.qualifiedFloating = qualifiedFloating;
		if (qualifiedFloating != null && qualifiedFloating.length()>1 ) {
			qualifiedFloatArr = StringProcesser.toIntArray(qualifiedFloating);
		}
	}
	public int[] getQualifiedFloatArr() {
		return qualifiedFloatArr;
	}
	public int getGrowthMin() {
		return growthMin;
	}
	public void setGrowthMin(int growthMin) {
		this.growthMin = growthMin;
	}
	public int getGrowthMax() {
		return growthMax;
	}
	public void setGrowthMax(int growthMax) {
		this.growthMax = growthMax;
	}
	public int getReinGrowthMax() {
		return reinGrowthMax;
	}
	public void setReinGrowthMax(int reinGrowthMax) {
		this.reinGrowthMax = reinGrowthMax;
	}

}
